package com.dys.dao;

import com.dys.pojo.User;
import com.dys.pojo.UserInfo;
import com.dys.pojo.UserWrapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @className: com.dys.dao.UserDao
 * @description: com.dys.dao
 * @author: pine cone
 * @version: v1.0.0
 * @createTime: 2024/11/04 21:55
 */
public interface UserDao {
    int addUser(User user);

    List<User> selectUserList();

    User selectUserById(@Param(value = "id") int id);

    int updateUser1(String username, int id);

    int updateUser2(String username, int id);

    int updateUser(@Param("username") String username, @Param("id") int id);

    int addUserWrapper(UserWrapper userWrapper);

    List<UserInfo> queryUserList();

    List<UserInfo> queryUserList2();
}
